<template>
  <div class="crumb">
    <template v-for="(item, index) in arr">
      <a href="#" :key="index">{{item.name}}</a> 
      <template v-if="index<arr.length-1"> / </template>
    </template>
  </div>
</template>

<script>
export default {
  props: ["arr"],
};
</script>

<style lang="less" scoped>
.crumb {
  line-height: 40px;
  a{
    text-decoration: none;
    color: #333;
    margin-left: 10px;
  }
}
</style>